// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.randomizedWorld.randomizedZoneStory;

import zombie.core.Rand;
import zombie.iso.IsoMetaGrid;

public class RZSMusicFest extends RandomizedZoneStoryBase {
    public RZSMusicFest() {
        this.name = "Music Festival";
        this.chance = 100;
        this.zoneType.add(RandomizedZoneStoryBase.ZoneType.MusicFest.toString());
        this.alwaysDo = true;
    }

    @Override
    public void randomizeZoneStory(IsoMetaGrid.Zone zone) {
        int int0 = Rand.Next(20, 50);

        for (int int1 = 0; int1 < int0; int1++) {
            int int2 = Rand.Next(0, 4);
            switch (int2) {
                case 0:
                    this.addItemOnGround(this.getRandomFreeSquareFullZone(this, zone), "Base.BeerCan");
                    break;
                case 1:
                    this.addItemOnGround(this.getRandomFreeSquareFullZone(this, zone), "Base.BeerBottle");
                    break;
                case 2:
                    this.addItemOnGround(this.getRandomFreeSquareFullZone(this, zone), "Base.BeerCanEmpty");
                    break;
                case 3:
                    this.addItemOnGround(this.getRandomFreeSquareFullZone(this, zone), "Base.BeerEmpty");
            }
        }
    }
}
